<?php

namespace App\Entities\Auth;

use App\Libraries\Entities\BaseEntity;

class Authorizes extends BaseEntity
{
    public $timestamps = true;
    protected $SortFlag = true;
    protected $table = 'auth_authorizes';

    protected $fillable = [
        'itemtable_id',
        'itemtable_type',
    ];

    /**
     * 对象相关.
     *
     * @return \Illuminate\Database\Eloquent\Relations\MorphTo
     */
    public function categorytable()
    {
        return $this->morphTo();
    }
}
